#include "head.h"

int net_gets(request_t *request, int net_fd){
    printf("nets_gets start\n");
    //拼接绝对路径
    char full_path[1024] = {0};
    getcwd(full_path, sizeof(full_path));
    strcat(full_path, "/");
    strcat(full_path, request->user_name);
    strcat(full_path, "/");
    strcat(full_path, request->path);
    strcat(full_path, "/");
    strcat(full_path, request->args);
    //puts(full_path);

    send_file(full_path, net_fd);

    return 0;
}
